|
Ubicación en el Menú |
---|
Pieza → Primitivas → Crear un tubo |
Entornos de trabajo |
Part |
Atajo de teclado por defecto |
Ninguno |
Introducido en versión |
0.19 |
Ver también |
Ninguno |
El comando Tubo inserta un tubo en el documento activo. El tubo es geométricamente tratado como un corte de un cilindro más pequeño dentro de otro mayor. Por defecto, el comando insertará un tubo de 10 mm de altura con un radio exterior de 5 mm y un radio interior de 2 mm. Estos parámetros pueden ser modificados tras ser introducido el objeto.
Se puede crear un tubo:
A Part Tube object created with the scripting example below is shown here.
See also: Property editor.
A Part Tube object is derived from a Part Feature object and inherits all its properties. It also has the following additional properties:
Attachment
The object has the same attachment properties as a Part Part2DObject.
Tube
See also: Autogenerated API documentation, Part scripting and FreeCAD Scripting Basics.
A Part Tube can be created with the addTube()
method (introduced in version 0.20) of the Shapes module:
tube = Shapes.addTube(FreeCAD.ActiveDocument, "myTube")
"myTube"
is the name for the object.Example:
import FreeCAD as App
from BasicShapes import Shapes
doc = App.activeDocument()
tube = Shapes.addTube(FreeCAD.ActiveDocument, "myTube")
tube.Height = 20
tube.InnerRadius = 2
tube.OuterRadius = 3
tube.Placement = App.Placement(App.Vector(2, 4, 5), App.Rotation(60, 60, 30))
doc.recompute()